Use the correct update regions for compressed bmps. (#150664, Owen Taylor,
authorMatthias Clasen <mclasen@redhat.com>
Mon, 28 Mar 2005 04:16:10 +0000 (04:16 +0000)
committerMatthias Clasen <matthiasc@src.gnome.org>
Mon, 28 Mar 2005 04:16:10 +0000 (04:16 +0000)
2005-03-27  Matthias Clasen  <mclasen@redhat.com>

* io-bmp.c (DoCompressed): Use the correct update regions for
compressed bmps.  (#150664, Owen Taylor, test images provided
by David Costanzo)

gdk-pixbuf/ChangeLog
gdk-pixbuf/io-bmp.c

index dea1fc5e834cffdce15a00a07c40fb26bdeb79c5..6ad4c7b9c8c06c66241f7d965c48d2e209546989 100644 (file)
@@ -1,3 +1,9 @@
+2005-03-27  Matthias Clasen  <mclasen@redhat.com>
+
+       * io-bmp.c (DoCompressed): Use the correct update regions for
+       compressed bmps.  (#150664, Owen Taylor, test images provided
+       by David Costanzo)
+
 Sun Mar 27 19:59:52 2005  Manish Singh  <yosh@gimp.org>
 
        * io-bmp.c (grow_buffer): reject 0-sized buffers as corrupt header
index 5b70ea047d3dff7fb4aced818fb77b4d62b1f5d3..f33f9f5e5d8172878178ba9c75d8e6ef7ac939bb 100644 (file)
@@ -1044,7 +1044,7 @@ DoCompressed(struct bmp_progressive_state *context, GError **error)
                        gint new_y = MIN (context->compr.y, context->Header.height);
                        (*context->updated_func) (context->pixbuf,
                                                  0,
-                                                 y,
+                                                 context->Header.height - new_y,
                                                  context->Header.width,
                                                  new_y - y,
                                                  context->user_data);